# python在docker中的版本
FROM python:3.11-slim-bullseye
# 执行以下命令
RUN apt-get update && apt-get -y install gcc
RUN pip install --upgrade pip

# 将文件移入后面的路径中
COPY requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt

COPY ./sanic_mongodb_ext /app/sanic_mongodb_ext
COPY ./LICENSE /app
COPY ./README.rst /app
COPY ./setup.py /app
# /app为工作路径
WORKDIR /app

RUN python setup.py develop
